B09 - Papers
提出
code: python
n = int(input())
# | .
# | .
# | .
# | .
# |_ _ _ _ _ _ _
q = [0*1501 for _ in range(1501)] z = [0*1501 for _ in range(1501)] for a, b, c, d in abcd:
for x in range(1501):
for y in range(1501):
for y in range(1501):
for x in range(1501):
ans = 0
for x in range(1501):
for y in range(1501):
ans += 1
print(ans // 2)
解答
code: python
n = int(input())
# | .
# | .
# | .
# | .
# |_ _ _ _ _ _ _
# | - +
# | - +
# | + -
# | + -
# |_ _ _ _ _ _ _
t = [0 * 1501 for _ in range(1501)] for a, b, c, d in abcd:
for x in range(0, 1501):
for y in range(1, 1501):
for x in range(1, 1501):
for y in range(0, 1501):
ans = 0
for x in range(1501):
for y in range(1501):
ans += 1
print(ans)
# t = [0 * 5 for _ in range(5)] # for a, b, c, d in abcd:
# # print(t)
# # 0, 0, 0, 0, 0], 0, 1, 0, -1, 0, 0, 0, 1, 0, -1, 0, -1, 0, 1, 0, [0, 0, -1, 0, 1 # for x in range(0, 5):
# for y in range(1, 5):
# # print(t)
# # 0, 0, 0, 0, 0], 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, -1, -1, 0, 0, [0, 0, -1, -1, 0 # for x in range(1, 5):
# for y in range(0, 5):
# # print(t)
# # 0, 0, 0, 0, 0], 0, 1, 1, 0, 0, 0, 1, 2, 1, 0, 0, 0, 1, 1, 0, [0, 0, 0, 0, 0 # ans = 0
# for x in range(5):
# for y in range(5):
# ans += 1
# print(ans)